#pragma warning(disable:4996)
#include<stdio.h>
#include<math.h>
int main()
{
	int n, max, min;
	int arr[20];
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%d",&arr[i]);
		if (!i)
			max = min = arr[i];
		else {
			max = fmax(max, arr[i]);
			min = fmin(min, arr[i]);
		}
	}
	printf("max=%d\n", max);
	printf("min=%d\n", min);
	printf("average=%.2lf", (max + min) / 2.0);
	return 0;
}